import connect from '../db/connect';
import * as dateTools from '../utils/dateTool';

/**
 * 获取用户信息
 * @param {*} params {id: 用户ID}
 */
function update(params = {}) {
	const { data } = params;
	const { id } = data || {};
	const SQL = `update user_info set sign_state = 1 where id = ${id}`;
	return new Promise((resolve, reject) =>
		connect({
			SQL,
			resolve,
			reject
		})
	);
}

export { update };
